package com.yc.booktable.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.yc.booktable.entity.Food;
import com.yc.booktable.mapper.FoodMapper;
import com.yc.booktable.service.IFoodService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zbh
 * @since 2022-06-06
 */
@Service
public class FoodServiceImpl extends ServiceImpl<FoodMapper, Food> implements IFoodService {

    @Autowired
    FoodMapper foodMapper;
    public List<Food> findList(@Param("tid") Long tid){
        return foodMapper.findList(tid);
    }


    public List<Food> findf(Integer fid) {
        return foodMapper.selectfby(fid);
    }
}
